/*
 * $Id$
 *
 * Copyright 2008 HuangHuang. All rights reserved.
 */
package com.crm.dao;

import com.crm.model.Listbox;

import java.util.List;

/**
 * @author <a href="mailto:huang0510@hotmail.com">HuangHuang</a>
 * @version $Id$
 */
public interface IListboxDao {

    /**
     * Get all of list.
     *
     * @param listboxName The name of Listbox class.
     * @return return all of list.
     */
    List<Listbox> getList(String listboxName);

    /**
     * Create or update a listbox.
     *
     * @param listbox The instance of Listbox.
     */
    void saveOrUpdate(Listbox listbox);

    /**
     * Delete a Listbox.
     *
     * @param listbox listbox The instance of Listbox.
     * @throws Exception The exception happen when delete a item.
     */
    void delete(Listbox listbox) throws Exception;
}
